# -*- coding: utf-8 -*-
from datetime import timedelta
from airflow.operators.bash import BashOperator
from jms.dm.dm_network_bagging_rate_dt import jms_dm__dm_network_bagging_rate_dt

# 拦截退转中类型退回始发网点明细数据（T-1）
oss__dm_network_bagging_rate_dt = BashOperator(
    task_id='oss__dm_network_bagging_rate_dt',
    email=['guoruiling@jtexpress.com','yl_bigdata@yl-scm.com'],
    pool='unlimited_pool',
    bash_command='jms/oss/oss_dm_network_bagging_rate_dt/execute.sh',
    execution_timeout=timedelta(minutes=10),
    sla=timedelta(hours=7)
)

oss__dm_network_bagging_rate_dt << [ jms_dm__dm_network_bagging_rate_dt ]
